#include <inttypes.h>
#include <stdbool.h>

#define MAX_ADDR 4095

void eeprom_parser(char *buf);

void eeprom_read_bytes_usb(uint16_t addr, uint16_t length);
uint8_t eeprom_read_bytes(uint16_t addr, char * buf, uint16_t length);
void eeprom_write_bytes_usb(uint16_t addr, char * buf, uint16_t length);
uint8_t eeprom_write_bytes(uint16_t addr, char * buf, uint16_t length);
